package com.xcity.pomelo.push.msg;

import com.alibaba.fastjson.annotation.JSONField;
import com.xcity.db.entity.Player;
import com.xcity.game.activity.oneyuan.OneYuanActivityPool;
import com.xcity.pomelo.PomeloRoute;
import com.xcity.pomelo.push.AbstractMessagePush;
import com.xcity.pomelo.response.OneYuanActivityResponse;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.PUSH, route = PomeloRoute.PUSH_MESSAGE)
public class OneYuanActivityPush extends AbstractMessagePush {

	private OneYuanActivityDataPush data;
	
	public static class OneYuanActivityDataPush extends OneYuanActivityResponse {

		public OneYuanActivityDataPush(OneYuanActivityPool pool, Player player) {
			super(0, pool, player);
		}

		@Override
		@JSONField(serialize = false)
		public short getCode() {
			return super.getCode();
		}
		
	}
	
	public OneYuanActivityPush(OneYuanActivityDataPush data) {
		super(MSG_ONE_YUAN_ACTIVITY);
		this.data = data;
	}

	public OneYuanActivityDataPush getData() {
		return data;
	}

	public void setData(OneYuanActivityDataPush data) {
		this.data = data;
	}

}
